// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsConsumerAccumulateResponse.h"

namespace aliyun { namespace Ons {

OnsConsumerAccumulateResponse::OnsConsumerAccumulateResponse() {
}

const string& OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset::GetTopic(void) const {
  return Topic_;
}

const string& OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset::GetBrokerName(void) const {
  return BrokerName_;
}

int OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset::GetQueueId(void) const {
  return QueueId_;
}

int64 OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset::GetBrokerOffset(void) const {
  return BrokerOffset_;
}

int64 OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset::GetConsumerOffset(void) const {
  return ConsumerOffset_;
}

int64 OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset::GetLastTimestamp(void) const {
  return LastTimestamp_;
}

const std::vector<OnsConsumerAccumulateResponse::Data::DetailInTopicDo::ConsumeQueueOffset>& OnsConsumerAccumulateResponse::Data::DetailInTopicDo::GetOffsetList(void) const {
  return OffsetList_;
}

const string& OnsConsumerAccumulateResponse::Data::DetailInTopicDo::GetTopic(void) const {
  return Topic_;
}

float OnsConsumerAccumulateResponse::Data::DetailInTopicDo::GetConsumeTps(void) const {
  return ConsumeTps_;
}

int64 OnsConsumerAccumulateResponse::Data::DetailInTopicDo::GetLastTimestamp(void) const {
  return LastTimestamp_;
}

int64 OnsConsumerAccumulateResponse::Data::DetailInTopicDo::GetDelayTime(void) const {
  return DelayTime_;
}

const std::vector<OnsConsumerAccumulateResponse::Data::DetailInTopicDo>& OnsConsumerAccumulateResponse::Data::GetDetailInTopicList(void) const {
  return DetailInTopicList_;
}

bool OnsConsumerAccumulateResponse::Data::GetOnline(void) const {
  return Online_;
}

int64 OnsConsumerAccumulateResponse::Data::GetTotalDiff(void) const {
  return TotalDiff_;
}

float OnsConsumerAccumulateResponse::Data::GetConsumeTps(void) const {
  return ConsumeTps_;
}

int64 OnsConsumerAccumulateResponse::Data::GetLastTimestamp(void) const {
  return LastTimestamp_;
}

int64 OnsConsumerAccumulateResponse::Data::GetDelayTime(void) const {
  return DelayTime_;
}

const OnsConsumerAccumulateResponse::Data& OnsConsumerAccumulateResponse::GetData(void) const {
  return Data_;
}

const string& OnsConsumerAccumulateResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsConsumerAccumulateResponse::BaseKey(void) {
  return "OnsConsumerAccumulateResponse";
}

void OnsConsumerAccumulateResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  UnmarshallerString(HelpUrl_, response_map, "OnsConsumerAccumulateResponse.HelpUrl");
      int Data__DetailInTopicList__length = 0;
      UnmarshallerInt(Data__DetailInTopicList__length, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList.Length");
      if(Data__DetailInTopicList__length >= 0) {
        Data_.DetailInTopicList_.resize(Data__DetailInTopicList__length);
        for(int i2 = 0; i2 < Data__DetailInTopicList__length; i2++) {
        int Data__DetailInTopicList_i2_OffsetList__length = 0;
        UnmarshallerInt(Data__DetailInTopicList_i2_OffsetList__length, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList.Length");
        if(Data__DetailInTopicList_i2_OffsetList__length >= 0) {
          Data_.DetailInTopicList_[i2].OffsetList_.resize(Data__DetailInTopicList_i2_OffsetList__length);
          for(int i3 = 0; i3 < Data__DetailInTopicList_i2_OffsetList__length; i3++) {
            UnmarshallerString(Data_.DetailInTopicList_[i2].OffsetList_[i3].Topic_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList["+string_ValueOfInt(i3)+"].Topic");
            UnmarshallerString(Data_.DetailInTopicList_[i2].OffsetList_[i3].BrokerName_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList["+string_ValueOfInt(i3)+"].BrokerName");
            UnmarshallerInt(Data_.DetailInTopicList_[i2].OffsetList_[i3].QueueId_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList["+string_ValueOfInt(i3)+"].QueueId");
            UnmarshallerInt64(Data_.DetailInTopicList_[i2].OffsetList_[i3].BrokerOffset_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList["+string_ValueOfInt(i3)+"].BrokerOffset");
            UnmarshallerInt64(Data_.DetailInTopicList_[i2].OffsetList_[i3].ConsumerOffset_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList["+string_ValueOfInt(i3)+"].ConsumerOffset");
            UnmarshallerInt64(Data_.DetailInTopicList_[i2].OffsetList_[i3].LastTimestamp_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList[+"+string_ValueOfInt(i2)+"].OffsetList["+string_ValueOfInt(i3)+"].LastTimestamp");
          } // for(int i3 = 0; i3 < Data__DetailInTopicList_i2_OffsetList__length; i3++) {
        } // if(Data__DetailInTopicList_i2_OffsetList__length >= 0) {

          UnmarshallerString(Data_.DetailInTopicList_[i2].Topic_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList["+string_ValueOfInt(i2)+"].Topic");
          UnmarshallerFloat(Data_.DetailInTopicList_[i2].ConsumeTps_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList["+string_ValueOfInt(i2)+"].ConsumeTps");
          UnmarshallerInt64(Data_.DetailInTopicList_[i2].LastTimestamp_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList["+string_ValueOfInt(i2)+"].LastTimestamp");
          UnmarshallerInt64(Data_.DetailInTopicList_[i2].DelayTime_, response_map, "OnsConsumerAccumulateResponse.Data.DetailInTopicList["+string_ValueOfInt(i2)+"].DelayTime");
        } // for(int i2 = 0; i2 < Data__DetailInTopicList__length; i2++) {
      } // if(Data__DetailInTopicList__length >= 0) {

    UnmarshallerBool(Data_.Online_, response_map, "OnsConsumerAccumulateResponse.Data.Online");
    UnmarshallerInt64(Data_.TotalDiff_, response_map, "OnsConsumerAccumulateResponse.Data.TotalDiff");
    UnmarshallerFloat(Data_.ConsumeTps_, response_map, "OnsConsumerAccumulateResponse.Data.ConsumeTps");
    UnmarshallerInt64(Data_.LastTimestamp_, response_map, "OnsConsumerAccumulateResponse.Data.LastTimestamp");
    UnmarshallerInt64(Data_.DelayTime_, response_map, "OnsConsumerAccumulateResponse.Data.DelayTime");
}


} } // namespace aliyun { namespace Ons {

// end of file 
